package artid.com.arttogoa;

import org.apache.commons.lang3.StringUtils;
import artid.com.arttogoa.app.ArtWorkApp;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
/**
 * 
 *    
 * 项目名称：ArtworkArtA   
 * 类名称   ：WithdrawalsInfo_Activity   
 * 类描述   ：体现详情   
 * 创建人   ：耿卫斌   
 * 创建时间：2016-8-9 下午2:16:45   
 *
 */
public class WithdrawalsInfo_Activity extends BaseActivity implements OnClickListener{
	private Context mContext;
	private TextView cardNo_tv,price_tv;
	private Button submitBtn;
	private String banckName,accountNumber,withdrawals="0";
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_withdrawaisinfo);
		setContent(this, getIntent());
		mContext=WithdrawalsInfo_Activity.this;
		initView();
	}
	
	private void  initView(){
		mTittle.setText("提现详情");
		setBack();
		banckName=getIntent().getStringExtra("banckName");
		accountNumber=getIntent().getStringExtra("accountNumber");
		withdrawals=getIntent().getStringExtra("withdrawals");
		cardNo_tv=(TextView) findViewById(R.id.withdrawaisinfo_cardNo);
		cardNo_tv.setText(banckName+" 尾号"+StringUtils.substring(accountNumber, -4));
		price_tv=(TextView) findViewById(R.id.withdrawaisinfo_price);
		price_tv.setText("￥"+withdrawals);
		submitBtn=(Button) findViewById(R.id.withdrawaisinfo_submit);
		submitBtn.setOnClickListener(this);
	}
	
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.withdrawaisinfo_submit:
			//完成
			ArtWorkApp.getInstance().addActivity(this);
			ArtWorkApp.getInstance().exit(ArtWorkApp.activityList.size()-1);
			ArtWorkApp.getInstance().exit(ArtWorkApp.activityList.size()-2);
			break;

		default:
			break;
		}
	}

}
